const fs = require('fs');
const path = require('path');

const deploymentFile = path.join(__dirname, 'deployment.json');

if (fs.existsSync(deploymentFile)) {
    const deployment = JSON.parse(fs.readFileSync(deploymentFile, 'utf8'));
    console.log('📋 deployment.json 内容:');
    console.log(JSON.stringify(deployment, null, 2));
    console.log('\n🔍 字段检查:');
    console.log('proxy 字段:', deployment.proxy);
    console.log('proxy 字段类型:', typeof deployment.proxy);
    console.log('proxy 字段是否有效:', deployment.proxy && deployment.proxy.startsWith('0x'));
} else {
    console.log('❌ deployment.json 文件不存在');
}